package com.jd.mysql.mgr.service.impl;

import java.util.List;

import com.jd.mysql.mgr.dao.MgrMachineDAO;
import com.jd.mysql.mgr.pojo.MgrMachine;
import com.jd.mysql.mgr.service.IMgrMachineService;

public class MgrMachineServiceImpl implements IMgrMachineService {
	
	public MgrMachineDAO mgrMachineDAO;
	
	public void setMgrMachineDAO(MgrMachineDAO mgrMachineDAO) {
		this.mgrMachineDAO = mgrMachineDAO;
	}

	public void addMgrMachine(MgrMachine mgrmachine) {
		// TODO Auto-generated method stub
		mgrMachineDAO.saveMgrMachine(mgrmachine);
	}

	public void deleteMgrMachine(MgrMachine mgrmachine) {
		// TODO Auto-generated method stub
		mgrMachineDAO.deleteMgrMachine(mgrmachine);
	}

	public MgrMachine findMgrMachineById(Integer id) {
		// TODO Auto-generated method stub
		return mgrMachineDAO.findMgrMachineById(id);
	}

	public void updateMgrMachine(MgrMachine mgrmachine) {
		// TODO Auto-generated method stub
		mgrMachineDAO.updateMgrMachine(mgrmachine);
	}

	public List<MgrMachine> getMgrMachineList(Integer start, Integer limit) {
		// TODO Auto-generated method stub
		return mgrMachineDAO.getMgrMachineList(start, limit);
	}

	public void disableMgrMachine(MgrMachine mgrmachine) {
		// TODO Auto-generated method stub
		mgrMachineDAO.disableMgrMachine(mgrmachine);
	}

	public Long getTotalCount(Integer groupId,Boolean enable) {
		// TODO Auto-generated method stub
		return mgrMachineDAO.getTotalCount(groupId,enable);
	}

	public List<MgrMachine> getMgrMachineList(Integer start, Integer limit,
			Boolean yn, String ip,Integer groupId) {
		// TODO Auto-generated method stub
		return mgrMachineDAO.getMgrMachineList(start, limit, yn, ip,groupId);
	}

	public MgrMachine getMgrMachineByIp(String ip) {
		// TODO Auto-generated method stub
		return mgrMachineDAO.getMgrMachineByIp(ip);
	}

	public Long getTotalCount(Integer groupId, Boolean enable, String ip) {
		// TODO Auto-generated method stub
		return mgrMachineDAO.getTotalCount(groupId, enable, ip);
	}

}
